package com.zx.mes.response;

import com.zx.mes.constant.Constants;

import java.io.Serializable;

/**
 * 基本的信息返回
 *
 * @author hyl
 * @date 2017-12-16
 */
public class BaseResponse implements Serializable {
    /**
     * 默认返回状态为200
     */
    private Integer status = Constants.DEFAULT_RESPONSE_STATUS_SUCCESS;

    /**
     * 异常信息
     */
    private String message;

    public BaseResponse() {
    }

    public BaseResponse(String message) {
        this.message = message;
    }

    public BaseResponse(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
